package com.zhangjun.taxconsumerorder82.controller;

import com.zhangjun.entity.ComputedTax;
import com.zhangjun.entity.Result;
import com.zhangjun.taxconsumerorder82.service.TaxService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author 张钧
 * @Description
 * @create 2022-09-20 12:48
 */
@RestController
@RequestMapping("tax")
public class TaxController {

	@Resource
	private TaxService taxService;

	@GetMapping("/get/{money}")
	public Result<ComputedTax> getTax(@PathVariable("money")Long money){
		return taxService.getTax(money);
	}
}
